package com.zzyl.nursing.job;


import com.zzyl.nursing.service.IContractService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 定时更新合同
 */
@Slf4j
@Component("contractJob")
public class ContractJob {

    @Autowired
    private IContractService contractService;

    // @Scheduled(cron = "0 0 0 1 * ?")
    public void updateContractStatusJob() {
        contractService.updateContractStatus();
        log.info("定时更新合同状态成功");
    }
}
